/*
 * Copyright (c) 2017-2019 THL A29 Limited, a Tencent company. All Rights Reserved.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef TENCENTCLOUD_GPM_V20200820_MODEL_CREATERULEREQUEST_H_
#define TENCENTCLOUD_GPM_V20200820_MODEL_CREATERULEREQUEST_H_

#include <string>
#include <vector>
#include <map>
#include <tencentcloud/core/AbstractModel.h>
#include <tencentcloud/gpm/v20200820/model/StringKV.h>


namespace TencentCloud
{
    namespace Gpm
    {
        namespace V20200820
        {
            namespace Model
            {
                /**
                * CreateRule请求参数结构体
                */
                class CreateRuleRequest : public AbstractModel
                {
                public:
                    CreateRuleRequest();
                    ~CreateRuleRequest() = default;
                    std::string ToJsonString() const;


                    /**
                     * 获取规则名称，[a-zA-Z0-9-\.]* 长度128
                     * @return RuleName 规则名称，[a-zA-Z0-9-\.]* 长度128
                     */
                    std::string GetRuleName() const;

                    /**
                     * 设置规则名称，[a-zA-Z0-9-\.]* 长度128
                     * @param RuleName 规则名称，[a-zA-Z0-9-\.]* 长度128
                     */
                    void SetRuleName(const std::string& _ruleName);

                    /**
                     * 判断参数 RuleName 是否已赋值
                     * @return RuleName 是否已赋值
                     */
                    bool RuleNameHasBeenSet() const;

                    /**
                     * 获取规则脚本，长度65535
                     * @return RuleScript 规则脚本，长度65535
                     */
                    std::string GetRuleScript() const;

                    /**
                     * 设置规则脚本，长度65535
                     * @param RuleScript 规则脚本，长度65535
                     */
                    void SetRuleScript(const std::string& _ruleScript);

                    /**
                     * 判断参数 RuleScript 是否已赋值
                     * @return RuleScript 是否已赋值
                     */
                    bool RuleScriptHasBeenSet() const;

                    /**
                     * 获取规则描述，最长1024
                     * @return RuleDesc 规则描述，最长1024
                     */
                    std::string GetRuleDesc() const;

                    /**
                     * 设置规则描述，最长1024
                     * @param RuleDesc 规则描述，最长1024
                     */
                    void SetRuleDesc(const std::string& _ruleDesc);

                    /**
                     * 判断参数 RuleDesc 是否已赋值
                     * @return RuleDesc 是否已赋值
                     */
                    bool RuleDescHasBeenSet() const;

                    /**
                     * 获取标签，key-value结构的数组，最多关联50组标签
                     * @return Tags 标签，key-value结构的数组，最多关联50组标签
                     */
                    std::vector<StringKV> GetTags() const;

                    /**
                     * 设置标签，key-value结构的数组，最多关联50组标签
                     * @param Tags 标签，key-value结构的数组，最多关联50组标签
                     */
                    void SetTags(const std::vector<StringKV>& _tags);

                    /**
                     * 判断参数 Tags 是否已赋值
                     * @return Tags 是否已赋值
                     */
                    bool TagsHasBeenSet() const;

                private:

                    /**
                     * 规则名称，[a-zA-Z0-9-\.]* 长度128
                     */
                    std::string m_ruleName;
                    bool m_ruleNameHasBeenSet;

                    /**
                     * 规则脚本，长度65535
                     */
                    std::string m_ruleScript;
                    bool m_ruleScriptHasBeenSet;

                    /**
                     * 规则描述，最长1024
                     */
                    std::string m_ruleDesc;
                    bool m_ruleDescHasBeenSet;

                    /**
                     * 标签，key-value结构的数组，最多关联50组标签
                     */
                    std::vector<StringKV> m_tags;
                    bool m_tagsHasBeenSet;

                };
            }
        }
    }
}

#endif // !TENCENTCLOUD_GPM_V20200820_MODEL_CREATERULEREQUEST_H_
